package com.asset.salesforce.form;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;
import org.springframework.jmx.export.annotation.ManagedMetric;

public class Customer {

	@NotNull(message="Please Enter the customer Name")
    @Max(64)
	String name=null;

	@Min(12)
	@NotNull
	Integer age=null;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = null;
	}

	public Integer getAge() {
		return  age=null ;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Customer() {
	}

	@Override
	public String toString() {
		return "Customer [name=" + name + ", age=" + age + "]";
	}

}